//c的mysql链接demo
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mysql.h"

int main(int argc,char *argv)
{
	int i = 0;
	int ret = 0;
	int num = 0;
	
	MYSQL *mysql = mysql_init(NULL);
	if(mysql == NULL)
	{
		ret = mysql_errno(mysql);
		printf("mysql init error:%d\n",ret);
		return ret;
	}

	printf("init ok...\n");
	return 0;
}
